function dhscroll() {
    var a = this;
    this.autoid = null, this.scrollDOM = null, this.scrollCDOM = null, this.showwidth = 0, this.steplength = 40;
    var b = this.steplength;
    this.steptime = 10, this.resttime = 1e4, this.uvwidth = 0, this.getsw = function() {
        var c = this.scrollCDOM.offsetWidth, d = this.scrollCDOM.innerHTML;
        this.scrollCDOM.innerHTML = [ d, d ].join(""), this.scrollCDOM.style.width = c * 2 + "px", document.attachEvent ? (this.scrollDOM.attachEvent("onmouseover", a.pause), this.scrollDOM.attachEvent("onmouseout", a.goon)) : (this.scrollDOM.addEventListener("mouseover", a.pause, !0), this.scrollDOM.addEventListener("mouseout", a.goon, !0)), this.uvwidth = Math.ceil(this.scrollDOM.scrollWidth / 2);
    }, this.scrollleft = function() {
        this.autoid != null && window.clearTimeout(this.autoid);
        var c = this.scrollDOM.scrollLeft;
        c += this.steplength, this.scrollDOM.scrollLeft = c, c >= this.uvwidth && (this.scrollDOM.scrollLeft = 0), c % this.showwidth == 0 ? this.autoid = window.setTimeout(function() {
            a.scrollleft();
        }, a.resttime) : this.autoid = window.setTimeout(function() {
            a.scrollleft();
        }, a.steptime);
    }, this.scrollright = function() {
        this.autoid != null && window.clearTimeout(this.autoid);
        var c = this.scrollDOM.scrollLeft;
        c -= this.steplength, this.scrollDOM.scrollLeft = c, c <= 0 && (this.scrollDOM.scrollLeft = this.uvwidth), c % this.showwidth == 0 ? this.autoid = window.setTimeout(function() {
            a.scrollright();
        }, a.resttime) : this.autoid = window.setTimeout(function() {
            a.scrollright();
        }, a.steptime);
    }, this.go = function(d, c) {
        this.autoid != null && window.clearTimeout(this.autoid), d == "left" ? c ? this.autoid = window.setTimeout(function() {
            a.scrollleft();
        }, 5e3) : a.scrollleft() : c ? this.autoid = window.setTimeout(function() {
            a.scrollright();
        }, 5e3) : a.scrollright();
    }, this.pre = function() {
        this.scrollright();
    }, this.next = function() {
        this.scrollleft();
    }, this.pause = function() {
        a.oldlength = a.steplength, a.steplength = 0;
    }, this.goon = function() {
        a.steplength = a.oldlength;
    };
}